#include "widget.h"
#include "ui_widget.h"
#include<QButtonGroup>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    QButtonGroup*group1=new QButtonGroup(this);
    QButtonGroup*group2=new QButtonGroup(this);
    QButtonGroup*group3=new QButtonGroup(this);
    group1->addButton(ui->radioButton_chinese);
    group1->addButton(ui->radioButton_math);
    group1->addButton(ui->radioButton_english);

    group2->addButton(ui->radioButton_history);
    group2->addButton(ui->radioButton_physical);

    group3->addButton(ui->radioButton_politics);
    group3->addButton(ui->radioButton_biology);
    group3->addButton(ui->radioButton_chemistry);
    group3->addButton(ui->radioButton_geography);
}

Widget::~Widget()
{
    delete ui;
}

